package com.atguigu.tingshu.user.service.impl;

import com.atguigu.tingshu.model.user.VipServiceConfig;
import com.atguigu.tingshu.user.mapper.VipServiceConfigMapper;
import com.atguigu.tingshu.user.service.VipServiceConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@SuppressWarnings({"all"})
public class VipServiceConfigServiceImpl extends ServiceImpl<VipServiceConfigMapper, VipServiceConfig> implements VipServiceConfigService {

	@Autowired
	private VipServiceConfigMapper vipServiceConfigMapper;

    /**
     * 根据id获取VIP服务配置信息
     * /api/user/vipServiceConfig/getVipServiceConfig/{id}
     * @param id
     * @return
     */
    @Override
    public VipServiceConfig getVipServiceConfig(Long id) {
        VipServiceConfig vipServiceConfig = vipServiceConfigMapper.selectById(id);
        return vipServiceConfig;
    }
}
